package com.ha.garbage.service;

import com.ha.garbage.model.Garbage;
import com.ha.garbage.model.GarbageKindVO;
import com.ha.garbage.model.Result;

import java.util.List;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

public interface garbageService {

    @GET("garbage")
    Call<Result<List<Garbage>>> getGarbage(@Query("name") String name);

    @GET("garbage/top10")
    Call<Result<List<Garbage>>> getTop10();

    @GET("kind")
    Call<Result<List<GarbageKindVO>>> getKind();
}
